const querystring = require('querystring');
let str = 'keyWord=nodejs&page=1&pageSize=10'
let obj = querystring.parse(str);
console.log(obj);

/**
 * [Object: null prototype] {
  keyWord: 'nodejs',
  page: '1',
  pageSize: '10'
}
 */